package cn.edu.scau.cmi.xiaozhenlin.composite;

import java.util.ArrayList;
import java.util.List;

public abstract class Component {

	abstract String getName();

	private List<Component> childComponents = new ArrayList<>();

	public void addChild(SafeComponent child) {
	}

	public void removeChild(String n) {
	}

	public StringBuilder printStruct() {
		return null;
	}

	public List<Component> getChildComponents() {
		return childComponents;
	}

	public void setChildComponents(List<Component> childComponents) {
		this.childComponents = childComponents;
	}
}
